﻿<%@ Control Language="C#" %>
<script runat="server">
    private string keep_url = "../Home/?";
    private string target = "_self";
    protected void Page_Load(object sender, EventArgs e)
    {
        SystemLang systmlang = new SystemLang();
        Repeater_List.DataSource = systmlang.List("Home");
        Repeater_List.DataBind();
    }
    /// <summary>
    /// 要保留的URL链接，支持相对路径
    /// </summary>
    public string Keep_Url
    {
        get { return keep_url; }
        set { keep_url = value; }
    }
    public string Target
    {
        get { return target; }
        set { target = value; }
    }
</script>
<asp:Repeater runat="server" ID="Repeater_List">
    <ItemTemplate>
        <a data-lang="<%#Eval("Item_Id") %>" target="<%=Target %>" href="<%=Keep_Url %>lang=<%#Eval("Item_Id") %>"><%#Eval("Item_Name")%></a>
    </ItemTemplate>
</asp:Repeater>
